﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Xml;
using System.Deployment.Application;

namespace for7raid.vkPlayer
{
    /// <summary>
    /// Логика взаимодействия для PlayListWindow.xaml
    /// </summary>
    public partial class PlayListWindow : Window
    {
        public PlayListWindow()
        {
             this.DataContext = new PlayerViewModel();
            InitializeComponent();
            
           
        }

        private void window_Loaded(object sender, RoutedEventArgs e)
        {
            this.SetSize();
            this.SizeChanged += window_SizeChanged;


        }

        private void window_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            this.SaveSize();
        }

        private void window_Closed(object sender, EventArgs e)
        {
            Properties.Settings.Default.Save();
        }

        private void window_MouseEnter(object sender, MouseEventArgs e)
        {
            //this.Opacity = 1;
        }
       
    }


}
